home *** CD-ROM | disk | FTP | other *** search
/ HamCall (April 1991) / HAMCALL CD-ROM (Buckmaster)(April 1991).BIN / prgming / ctutor / tabcont.txt < prev    next >
Text File  |  1990-10-14  |  8KB  |  183 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                       CORONADO ENTERPRISES
  9.  
  10.                     C TUTORIAL - Version 2.2
  11.  
  12.  
  13. This documentation and the accompanying software, including all
  14. of the example C programs and text files, are protected under
  15. United States copyright law to protect them from unauthorized
  16. commercialization.  This version of the tutorial is distributed
  17. under the Shareware concept, which means you are not required to
  18. pay for it.  You are permitted to copy the disks, and pass the
  19. copies on to a friend, provided that you do not modify any files
  20. or omit any files from the complete package, and you are in fact
  21. encouraged to pass on complete copies to friends.  You are per-
  22. mitted to charge a small fee to cover the costs of duplication,
  23. but you are not permitted to charge anything for the software
  24. itself.
  25.  
  26. If you find the tutorial helpful, you are encouraged to register
  27. with the author and to submit a small fee to help compensate him
  28. for his time and expense in writing it.  We will provide you
  29. with a beautifully printed copy of this tutorial if you submit a
  30. full registration.  See the READ.ME file on either diskette for
  31. additional details.
  32.  
  33. Whether or not you send a registration fee, feel free to request
  34. a copy of the latest list of available tutorials and a list of
  35. the authorized Public Domain libraries that distribute our full
  36. line of programming language tutorials.
  37.  
  38.  
  39.  
  40.                  Gordon Dodrill - Oct 18, 1988
  41.  
  42.  
  43.  
  44.             Copyright (c) 1988, Coronado Enterprises
  45.  
  46.                        Coronado Enterprises
  47.                        12501 Coronado Ave NE
  48.                    Albuquerque, New Mexico 87122
  49.  
  50.  
  51.  
  52.                  C TUTORIAL - TABLE OF CONTENTS
  53.  
  54. Introduction                                       Page I-1
  55.  
  56. Chapter  1 - Getting started                       Page 1-1
  57.   FIRSTEX.C     The first example program            1-3
  58.  
  59. Chapter  2 - Program Structure                     Page 2-1
  60.      TRIVIAL.C     The minimum program               2-1
  61.      WRTSOME.C     Write some output                 2-1
  62.      WRTMORE.C     Write more output                 2-2
  63.      ONEINT.C      One integer variable              2-2
  64.      COMMENTS.C    Comments in C                     2-4
  65.      GOODFORM.C    Good program style                2-5
  66.      UGLYFORM.C    Bad program style                 2-5
  67.  
  68. Chapter  3 - Program Control                       Page 3-1
  69.      WHILE.C       The While loop                    3-1
  70.      DOWHILE.C     The Do-While loop                 3-2
  71.      FORLOOP.C     The For loop                      3-2
  72.      IFELSE.C      The If & If-Else construct        3-3
  73.      BREAKCON.C    The Break & Continue              3-4
  74.      SWITCH.C      The Switch construct              3-4
  75.      GOTOEX.C      The Goto Statement                3-5
  76.      TEMPCONV.C    The temperature conversion        3-6
  77.      DUMBCONV.C    Poor program style                3-6
  78.  
  79. Chapter  4 - Assignment & Logical Compare          Page 4-1
  80.      INTASIGN.C    Integer assignments               4-1
  81.      MORTYPES.C    More data types                   4-2
  82.      LOTTYPES.C    Lots of data types                4-4
  83.      COMPARES.C    Logical compares                  4-6
  84.      CRYPTIC.C     The cryptic constructs            4-10
  85.  
  86. Chapter  5 - Functions, variables, & prototyping   Page 5-1
  87.      SUMSQRES.C    First functions                   5-1
  88.      SQUARES.C     Return a value                    5-3
  89.      FLOATSQ.C     Floating returns                  5-4
  90.      SCOPE.C       Scope of variables                5-5
  91.      RECURSON.C    Simple Recursion Program          5-9
  92.      BACKWARD.C    Another Recursion Program         5-10
  93.      FLOATSQ2.C    Floating returns with prototypes  5-11
  94.  
  95. Chapter  6 - Defines & Macros                      Page 6-1
  96.      DEFINE.C      Defines                           6-1
  97.      MACRO.C       Macros                            6-2
  98.      ENUM.C        Enumerated type                   6-3
  99.  
  100. Chapter  7 - Strings and Arrays                    Page 7-1
  101.      CHRSTRG.C     Character Strings                 7-1
  102.      STRINGS.C     More Character strings            7-2
  103.      INTARRAY.C    Integer Array                     7-4
  104.      BIGARRAY.C    Many Arrays                       7-4
  105.      PASSBACK.C    Getting data from Functions       7-5
  106.      MULTIARY.C    Multidimensional arrays           7-6
  107.  
  108.  
  109.  
  110. Chapter  8 - Pointers                              Page 8-1
  111.      POINTER.C     Simple Pointers                   8-1
  112.      POINTER2.C    More pointers                     8-3
  113.      TWOWAY.C      Twoway Function Data              8-6
  114.  
  115. Chapter  9 - Standard Input/Output                 Page 9-1
  116.      SIMPLEIO.C    Simplest standard I/O             9-1
  117.      SINGLEIO.C    Single character I/O              9-4
  118.      BETTERIN.C    Better form of single I/O         9-4
  119.      INTIN.C       Integer input                     9-6
  120.      STRINGIN.C    String input                      9-7
  121.      INMEM.C       In memory I/O conversion          9-8
  122.      SPECIAL.C     Standard error output             9-9
  123.  
  124. Chapter 10 - File Input/Output                     Page 10-1
  125.      FORMOUT.C     Formatted output                  10-1
  126.      CHAROUT.C     Single character output           10-3
  127.      READCHAR.C    Read single characters            10-4
  128.      READTEXT.C    Read single words                 10-5
  129.      READGOOD.C    Better read and display           10-5
  130.      READLINE.C    Read a full line                  10-6
  131.      ANYFILE.C     Read in any file                  10-6
  132.      PRINTDAT.C    Output to the printer             10-6
  133.  
  134. Chapter 11 - Structures                            Page 11-1
  135.      STRUCT1.C     Minimum structure example         11-1
  136.      STRUCT2.C     Array of structures               11-2
  137.      STRUCT3.C     Structures with pointers          11-3
  138.      NESTED.C      Nested structure                  11-5
  139.      UNION1.C      An example union                  11-7
  140.      UNION2.C      Another Union example             11-8
  141.      BITFIELD.C    Bitfield example                  11-10
  142.  
  143. Chapter 12 - Dynamic Allocation                    Page 12-1
  144.      DYNLIST.C     Simple Dynamic Allocation         12-1
  145.      BIGDYNL.C     Large Dynamic Allocation          12-5
  146.      DYNLINK.C     Dynamic Linked List Program       12-6
  147.  
  148. Chapter 13 - Character and Bit Manipulation        Page 13-1
  149.      UPLOW.C       Upper/Lower Case Text             13-1
  150.      CHARCLAS.C    Character Classification          13-1
  151.      BITOPS.C      Logical Bit Operations            13-2
  152.      SHIFTER.C     Bit Shifting Operations           13-3
  153.  
  154. Chapter 14 - Example programs                      Page 14-1
  155.      DOSEX.C       DOS call examples                 14-2
  156.      WHATNEXT.C    Ask Question in Batch File        14-3
  157.      LIST.C        Source Code Lister                14-4
  158.      VC.C          Visual Calculator                 14-4
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166. ABOUT THE AUTHOR
  167. _____________________________________________________________
  168.  
  169. The author of this tutorial began programming in 1961 using
  170. FORTRAN on an IBM 1620.  Since then most of his career has been
  171. involved with designing digital logic for satellite
  172. application.  In 1983, being somewhat burned out with logic
  173. design, he began a study of some of the more modern programming
  174. languages and has since made a complete career shift to
  175. software development.  After learning Pascal, C was studied,
  176. followed by Modula-2 and Ada.  Rather than simply learning the
  177. syntax of each new language, modern methods of software
  178. engineering were studied and applied to effectively utilize the
  179. languages.  He is currently employed by a large research and
  180. development laboratory where he continues to study, teach, and
  181. apply the newer programming languages.
  182.  
  183.